package com.haliyoo.adhere.http;

/**
 * 响应数据
 * @author wation.haliyoo
 *
 */
public class HttpData {
	private byte byteArray[] = null; // 数据流 用于SAX解析
	private String statusCode = "-1"; // 返回的状态码
	private String httpType = null;
	private String httpLength = "";
	/** 数据长度 */
	private int dcmpContentLength = 0;
	/** 内容数据长度 */
	private int textContentLength = 0;

	public HttpData() {
	}

	public String getHttpType() {
		return httpType;
	}

	public void setHttpType(String httptype) {
		this.httpType = httptype;
	}

	public String getHttpLength() {
		return httpLength;
	}

	public void setHttpLength(String httplength) {
		this.httpLength = httplength;
	}

	public void setByteArray(byte[] in) {
		this.byteArray = in;
	}

	public byte[] getByteArray() {
		if (byteArray != null)
			return byteArray;
		else
			return null;
	}

	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
	}

	public String getStateCode() {
		return statusCode;
	}

	public int getDcmpContentLength() {
		return dcmpContentLength;
	}

	public void setDcmpContentLength(String dcmpContentLength) {
		try {
		} catch (Exception e) {

		}

	}

	public int getTextContentLength() {
		return textContentLength;
	}

	public void setTextContentLength(String textContentLength) {
		try {
			this.textContentLength = Integer.parseInt(textContentLength);
		} catch (Exception e) {

		}
	}
}